﻿@model TechnicBlog.Models.SupplierEntity
@{
    Layout = null;
}

<script>
    function RequestError() {
        $.messager.alert('错误', '<br>请求失败！', 'error');
    }
    function checkSubmit() {
        if ($("#form0").validate()) {
            $('#loading').window('open');
            $("#form0").ajaxSubmit({ action: this.action, method: this.method });
        }
    }
</script>

<form id="form0" action="/Supplier/Add" method="post" data-ajax-failure="RequestError"
data-ajax="true">
    <table style="color: #666666; width: 100%;">
        <tr style="height: 34px;">
            <td style="width: 25%;" align="right">
                供货商名称：
            </td>
            <td style="width: 75%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.SupplierName, new { require = "true"})
                </div>
            </td>
        </tr>
        <tr style="height: 34px;">
            <td style="width: 25%;" align="right">
                联系人：
            </td>
            <td style="width: 75%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.LinkMan, new { require = "true"})
                </div>
            </td>
        </tr>
        <tr style="height: 34px;">
            <td style="width: 25%;" align="right">
                手机：
            </td>
            <td style="width: 75%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.LinkMobile, new { require = "true", mobile="true"})
                </div>
            </td>
        </tr>
        <tr style="height: 34px;">
            <td style="width: 25%;" align="right">
                固话：
            </td>
            <td style="width: 75%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Telphone)
                </div>
            </td>
        </tr>
        <tr style="height: 34px;">
            <td style="width: 25%;" align="right">
                地址：
            </td>
            <td style="width: 75%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Address, new {@style="width:300px;"})
                </div>
            </td>
        </tr>
        <tr style="height: 34px;">
            <td style="width: 25%;" align="right">
                描述：
            </td>
            <td style="width: 75%;" align="left">
                <div class="editor-field">
                    @Html.TextAreaFor(model => model.Remark, new {@style="width:300px;height:100px;"})
                </div>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td align="left">
                <a class="easyui-linkbutton"
                    iconcls="icon-save" onclick="return checkSubmit();">提交</a>
                    <a class="easyui-linkbutton"
                    iconcls="icon-cancel" onclick="javascript:$('#divSupplierEdit').window('close');">关闭</a>
            </td>
        </tr>
    </table>
</form>